<?php
//$template;$color;$image;$repeat;$link;$content;$show set from shortcode
$show_image = false;
$style = "";
if ($color != "") {
    $style .= "background-color:{$color};";
}
if ($image != "") {
    $show_image = true;
    $style .= "background-size:cover;";
    $image_html = "<img src='{$image}' class='pointer' alt='bgImage'/>";
}
$icon_image='';
if($icon!=""){
    $icon_image = "<img class='home_box_icon' src='{$icon}' alt='{$title}' />";
}
?>
<h3><?php echo $icon_image.$title;?></h3>
<div class="info" style="<?php echo $style; ?>">
    <?php echo $image_html; ?>
    <ul>
         <li class="box_description"><?php echo $content;?></li>
        <?php
        global $wp_query;
        $temp = $wp_query;  // re-sets query
        $args = array(
            'post_type' => array('network'),
            'orderby' => 'date',
            'order' => 'DESC',
            'posts_per_page' => $show,
        );
        $custom_query = new WP_Query($args);
        while ($custom_query->have_posts()) : $custom_query->the_post();
            the_post_thumbnail('full');
            //echo '<li><a href="' . get_permalink() . '">'."&nbsp;#&nbsp;" . get_the_title() . '</a></li>';
        endwhile;
        $wp_query = $temp;  // re-sets query
        wp_reset_query();
        ?>
    </ul>
    <a href="<?php echo get_post_type_archive_link( 'network' );; ?>" class="more network-readmore">More..</a>
</div>   